package com.aiti.lulian.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;
import java.util.Objects;

/**
 * <p>
 * 名片名企圈标签表
 * </p>
 *
 * @author 
 * @since 2025-08-20
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("card_enterprise_circle_label")
public class CardEnterpriseCircleLabel implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "base_id", type = IdType.ASSIGN_ID)
    private String baseId;

    /**
     * 名称
     */
    @TableField("label_name")
    private String labelName;

    /**
     * 名企圈id
     */
    @TableField("circle_id")
    private String circleId;

    /**
     * 企业id
     */
    @TableField("enterprise_id")
    private String enterpriseId;

    /**
     * 创建时间
     */
    @TableField("base_create_time")
    private Date baseCreateTime;

    /**
     * 修改时间
     */
    @TableField("base_update_time")
    private Date baseUpdateTime;

    /**
     * 删除状态，0-未删除，1-删除
     */
    @TableField("is_delete")
    private Byte isDelete;

    /**
     * 创建人id
     */
    @TableField("creator")
    private String creator;

    /**
     * 修改人id
     */
    @TableField("update_by")
    private String updateBy;

    /**
     * 标签类型：1用于圈子的展示 2用于成员佩戴（标签配置）
     */
    @TableField("type")
    private Integer type;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        CardEnterpriseCircleLabel that = (CardEnterpriseCircleLabel) o;
        return Objects.equals(baseId, that.baseId) && Objects.equals(labelName, that.labelName);
    }

    @Override
    public int hashCode() {
        return Objects.hash(baseId, labelName);
    }
}
